package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class DataTypeList {

    private int beginIndex;
    private int endIndex;
    private List<DataType> dataTypeList;

    public DataTypeList(int beginIndex, int endIndex, List<DataType> dataTypeList) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.dataTypeList = dataTypeList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return dataTypeList.size();
    }

    public DataType get(int index) {
        return dataTypeList.get(index);
    }

}
